/**
 * COPYRIGHT HangZhou 99Cloud Technology Company Limited
 * All right reserved.
 */
package com.zfsmart.projectdemo.account.controller;

import com.zfsmart.component.common.bean.restful.entity.RespMsg;
import com.zfsmart.projectdemo.account.service.impl.Test;
import io.seata.core.exception.TransactionException;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description
 * @Author 薛铁琪
 * @CreateTime 2021/7/28 17:16
 * @Version 1.0
 */
@RestController
@RequestMapping("/account")
@Api(value = "account", tags = "account")
@Slf4j
public class TestController {
    @Autowired
    Test testService;

    @ApiOperation("test")
    @GetMapping("/test")
    public RespMsg test() throws InterruptedException, TransactionException {
        log.info("进入");
        testService.doSomeThing3();
        return RespMsg.success();
    }
}
